<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>  
        <?php
        include "config.php";
        $url_Pan_American_Silver_Round= "https://store.nwtmint.com/product_details/2114/Tube_of_20_Pan_American_Silver_Rounds/";
        $url_Kitco = "http://www.kitcosilver.com/";
        $price_regex = "/\d+\.\d{2}/";
        $scraper = new KitcoPriceScraper($url_Kitco);
        $kitco = $scraper->getPrice($price_regex);
        echo "$kitco[0]<--<a href=\"$url_Kitco\">Kitco Price</a></br>";
        $scraper = new NnwtmintPriceScraper($url_Pan_American_Silver_Round);
        $nwtmint = $scraper->getPrice($price_regex);
        echo $nwtmint[0]/20;
        echo "<--<a href=\"$url_Pan_American_Silver_Round\">Tube of 20 Pan American Silver Rounds</a></br>";
        ?>
    </body>
</html>
